package utils

import "strconv"

func StringToUint(s string) (uint, error) {
	// 将字符串解析为 uint64
	num, err := strconv.ParseUint(s, 10, 64)
	if err != nil {
		return 0, err
	}

	// 将 uint64 转换为 uint
	return uint(num), nil
}
